package com.odianyun.hello.constant;

import com.google.common.collect.Lists;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SoConstant {
    private static final Integer ORDER_STATUS_UN_PAY = 1010;//待支付
    private static final Integer ORDER_STATUS_PAID = 1020;//已支付
    private static final Integer ORDER_STATUS_UN_CONFIRM = 1030;//待确认
    private static final Integer ORDER_STATUS_CONFIRMED = 1031;//已确认
    private static final Integer ORDER_STATUS_WAIT_CONFIRM = 1040;//待审核
    private static final Integer ORDER_STATUS_UN_DELIVERY = 1050;//待发货
    public static final Integer ORDER_STATUS_DELIVERY = 1060;//已发货
    public static final Integer ORDER_STATUS_RECIEVE = 1070;//已签收
    private static final Integer ORDER_STATUS_FINISH = 1999;//已关闭
    private static final Integer ORDER_STATUS_CLOSE = 9000;//已支付

    private static final String FRONT_STATUS_UN_PAY = "待支付";
    private static final String FRONT_STATUS_PAID = "已支付";
    private static final String FRONT_STATUS_UN_CONFIRM = "待确认";
    private static final String FRONT_STATUS_CONFIRMED ="已确认";
    private static final String FRONT_STATUS_WAIT_CONFIRM ="待审核";
    private static final String FRONT_STATUS_UN_DELIVERY ="待发货";
    private static final String FRONT_STATUS_DELIVERY ="已发货";
    private static final String FRONT_STATUS_RECIEVE = "已签收";
    private static final String FRONT_STATUS_FINISH = "已关闭";
    private static final String FRONT_STATUS_CLOSE = "已支付";

    public static final List<Integer> ORDER_STATUS_INT = Lists.newArrayList(ORDER_STATUS_UN_PAY,ORDER_STATUS_PAID,ORDER_STATUS_UN_CONFIRM,ORDER_STATUS_CONFIRMED,ORDER_STATUS_WAIT_CONFIRM,    ORDER_STATUS_UN_DELIVERY,ORDER_STATUS_DELIVERY, ORDER_STATUS_DELIVERY,ORDER_STATUS_FINISH,ORDER_STATUS_CLOSE);
    public static final List<String> ORDER_STATUS_STRING = Lists.newArrayList(FRONT_STATUS_UN_PAY,FRONT_STATUS_PAID,FRONT_STATUS_UN_CONFIRM,FRONT_STATUS_CONFIRMED,FRONT_STATUS_WAIT_CONFIRM,FRONT_STATUS_UN_DELIVERY,FRONT_STATUS_DELIVERY,FRONT_STATUS_RECIEVE,FRONT_STATUS_FINISH,FRONT_STATUS_CLOSE);

    /*包裹状态*/

    //已送达
    public static final int PACKAGE_STATUS_ARRIVED = 3040;

    //审核通过
    public static final int PACKAGE_STATUS_CONFIRMED = 4010;

    //已完成
    public static final int PACKAGE_STATUS_FINISHED = 4099;

    public static Map<Integer , String> ORDER_STATUS_MAP = new HashMap<Integer , String>(){{
        put(ORDER_STATUS_UN_PAY , "待支付");
    }

    };
}
